package cn.ichar.provide.service;

import cn.ichar.dubboapi.service.TestService;
import cn.ichar.dubboapi.vo.TestVo;
import com.alibaba.fastjson.JSON;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @Author: zhangning
 * @Date: 2021/4/16
 */
//@DubboService(interfaceClass = TestService.class)
public class TestProvideService implements TestService {
    public TestProvideService(){
        System.err.println("TestProvideService");
    }
    @Override
    public TestVo getTestVo(TestVo testVo) {
        System.out.println(JSON.toJSON(testVo));
        testVo.setStr("进入provide");
        return testVo;
    }
}
